package org.iks.store.business.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.iks.common.constant.Constant;

import java.util.Date;

/**
 * Author kzou
 * Date 2024/2/13
 * Description: 聊天对话
 */
@Data
@TableName("user_session")
public class SessionEntity {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private String name;

    private String creatorAccount;

    @JsonFormat(pattern = Constant.DATE_TIME_FORMAT)
    private Date createTime;

    @JsonFormat(pattern = Constant.DATE_TIME_FORMAT)
    private Date updateTime;

    private String avatar;

    private String userAccount;

}
